Page({

 
  data: {
    
  },


  onLoad: function (options) {

    this.getMovieListData("")
    
  },
  getMovieListData:function(url){
    wx.request({
      url: url,
      method: "GET",
      header: {
        "Content-Type": ""

      },
      success: function (res) {

        console.log(res);
      }
    })
},
 
 processDoubanData:function(moviesDouban){

var movies = [];
for (var index in moviesDouban.subjects){

var subject = moviesDouban.subjects[index];

var title = subject.title;
if(title.length >=6){
  title = title.substring(0,6)+"....";


}

var temp ={

title:title
 

}
movies.push(temp);

}

this.setData({

movies:movies

})


 }
 
  
})